import { createApp } from 'vue'
import './style.css'
import App from './views/Admin/App.vue'
import store from './store';
import router from './router';
import getRoutes from './grants/router';
const app = createApp(App);
// vuex：做动态添加路由配置
if(sessionStorage.getItem("grants")){
    getRoutes();
    store.commit({
        type:"setIsAddRoute",
        isAddRoute:true
    });
}

app.use(router);

app.mount('#app')
